class BaseProcessor:
    def open_spider(self, spider):
        self.spider = spider

    def close_spider(self, spider):
        pass

    def process(self, item):
        raise NotImplementedError
